當前位置: 首頁> 函數類別大全> timezone_location_get

timezone_location_get

DateTimeZone::getLocation的別名- 返回與時區相關的定位信息
名稱:timezone_location_get
分類:日期和時間
所屬語言:php
一句話介紹:返回指定時區的位置信息。

定義和用法

timezone_location_get()返回給定時區的位置信息。

實例

返回指定時區的位置信息:

 <?php
$tz = timezone_open ( "America/New_York" ) ;
echo timezone_location_get ( $tz ) ;
?>

親自試一試

文法

timezone_location_get ( object ) ;
參數 描述
object 必需。規定由timezone_open()返回的DateTimeZone 對象。
同類函數